How to read key from web config in JavaScript

116

How to read key from web config in JavaScript -

<script>
    var apiUrl = '@System.Configuration.ConfigurationManager.AppSettings["url"]';
</script>

Comments

Submit
0 Comments